from django.contrib import admin
from dynamicloselist.models import LoseRate,LearnLog
from django.utils.safestring import mark_safe

# Register your models here.


@admin.register(LoseRate)
class LoseRateAdmin(admin.ModelAdmin):
    list_display = ('userId','learnCount','loseRate','lastUpdateTime')
    list_filter = ('userId', 'learnCount', 'lastUpdateTime')
    list_editable = ['loseRate']

@admin.register(LearnLog)
class LearnLogAdmin(admin.ModelAdmin):
    list_display = ('userId','cardId','learnCount','logInfo','logTime')
    list_filter = ('userId', 'cardId', 'learnCount')